<?php
namespace app\admin\validate;

use think\Validate;

class NavAnli extends Validate
{
    protected $rule = [
        'title' => 'require|max:25',
        'thumb' => 'require',
    ];

    protected $message = [
        'title.require' => '请输入标题',
        'title.max'     => '标题最多不能超过25个字符',
        'thumb.require' => '缩略图必须上传'
    ];
}
